<?php
/**
 * @author zhaofei
 * @package 报告 
 * @createtime 20self::MODEL_BOTH4-self::MODEL_BOTHself::MODEL_BOTH-25
 * @updatetime 20self::MODEL_BOTH4-self::MODEL_BOTHself::MODEL_BOTH-25
 * @ps:
 */
namespace System\Model;
use Think\Model;
class OrderModel extends Model{

	protected $_validate =array(
		array('title','require','报单主题不能为空',self::MODEL_BOTH),
		array('title','','报单主题不能重复',0,'unique',1), 
		array('content','require','报单内容不能为空',self::MODEL_BOTH),
	);
	
	protected $_auto = array (
		array('e_id','getId',self::MODEL_BOTH,'callback'),
		array('examize_status',0,self::MODEL_INSERT),
		array('write_time','time',self::MODEL_INSERT,'function'),
	);

	public function getId(){
		return session('id');
	}
}
?>